package com.woniuxy.feign.hystrix;

import com.woniuxy.feign.UtilFeign;
import org.springframework.stereotype.Component;

/**
 * @Author: wanghao
 * @Date: 2019/9/23 10:07
 *
 * util调用失败熔断器
 */
@Component
public class UtilHystrix implements UtilFeign {



    /**
     * 商品开始短信发送失败
     * @param phone
     * @param time
     * @param good
     * @return
     */
    @Override
    public String sendTime(String phone, String time, String good) {
        System.out.println("商品开始短信发送失败");
        return null;
    }

    /**
     * 调用短信服务发送竞拍成功通知
     * @param account
     * @param goodsName
     * @return
     */
    @Override
    public String sendMessage(String account, String goodsName) {
        System.out.println("通知发送失败");
        return null;
    }
}
